import request from '@/utils/request'

export function addStock (data) {
  return request({
    url: '/stock',
    method: 'post',
    data
  })
}

export function delStock (data) {
  return request({
    url: '/stock',
    method: 'delete',
    data
  })
}

export function searchStock (params) {
  return request({
    url: '/stock/table/search',
    method: 'get',
    params
  })
}
